4 public class ShakeOnKeyPress
: MonoBehaviour
6 public float Magnitude
= 2f
;
7 public float Roughness
= 10f
;
8 public float FadeOutTime
= 5f
;
12 if(Input
.GetKeyDown(KeyCode
.LeftShift
))
13 CameraShaker
.Instance
.ShakeOnce(Magnitude
, Roughness
, 0, FadeOutTime
);